//
//  UPSchemeManager.h
//  Uang Pasti
//
//  Created by 李永彬 on 2025/8/24.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NSString *SchemeJumpType NS_STRING_ENUM;

extern SchemeJumpType const SchemeJumpTypeMain;
extern SchemeJumpType const SchemeJumpTypeLogin;
extern SchemeJumpType const SchemeJumpTypeOrder;
extern SchemeJumpType const SchemeJumpTypeContinuing;

@interface UPSchemeManager : NSObject

@property (nonatomic, copy, readonly) NSString *scheme;
@property (nonatomic, copy, readonly) NSString *tabKey;
@property (nonatomic, copy, readonly) NSString *productIdKey;

+ (instancetype)shared;

- (void)parser:(NSString *)url;
- (NSDictionary<NSString *, id> *)parametersWithQueryItems:(NSArray<NSURLQueryItem *> *)queryItems;

@end

NS_ASSUME_NONNULL_END
